home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-10-08 | 1.1 KB | 64 lines |
- CC = cc
-
- CFLAGS = -O
-
- TARGET = nuweb
- VERSION = 0.87b
-
- OBJS = main.o pass1.o latex.o html.o output.o input.o scraps.o names.o \
- arena.o global.o
-
- SRCS = main.c pass1.c latex.c html.c output.c input.c scraps.c names.c \
- arena.c global.c
-
- .SUFFIXES: .dvi .tex .w .hw
-
- .w.tex:
- nuweb $*.w
-
- .hw.tex:
- nuweb $*.hw
-
- .tex.dvi:
- latex $*.tex
-
- .w.dvi:
- $(MAKE) $*.tex
- $(MAKE) $*.dvi
-
- all:
- $(MAKE) $(TARGET).tex
- $(MAKE) $(TARGET)
-
- shar: $(TARGET)doc.tex
- shar Makefile README literate.bib nuweb.w \
- $(TARGET)doc.tex $(SRCS) global.h \
- > $(TARGET)$(VERSION).sh
-
- tar: $(TARGET)doc.tex
- tar -cf $(TARGET)$(VERSION).tar Makefile README literate.bib nuweb.w \
- $(TARGET)doc.tex $(SRCS) global.h
-
- $(TARGET)doc.tex: $(TARGET).tex
- sed 's/\\showcodetrue/\\showcodefalse/' $(TARGET).tex > $@
-
- clean:
- -rm -f *.tex *.log *.dvi *~ *.blg *.lint
-
- veryclean:
- -rm -f *.o *.c *.h *.tex *.log *.dvi *~ *.blg *.lint
-
- view: $(TARGET).dvi
- xdvi $(TARGET).dvi
-
- print: $(TARGET).dvi
- lpr -d $(TARGET).dvi
-
- lint:
- lint $(SRCS) > nuweb.lint
-
- $(OBJS): global.h
-
- $(TARGET): $(OBJS)
- $(CC) -o $(TARGET) $(OBJS)
-